<%-- 
    Document   : solicitudesCip
    Created on : 10/11/2009, 02:29:09 PM
    Author     : FreddyHIQ
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<link href="/general/css/admin_1.css" rel="stylesheet" type="text/css"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <t:div>
        <a4j:form ajaxSubmit="true" styleClass="fondoFormulariosyPanel" oncomplete="#{TramitesController.cargar}">
            <h:panelGrid columns="1" styleClass="rayaForms" width="100%">
                <h:outputLabel  value="Elegir Solicitud" />
            </h:panelGrid>
            <br>
            <h:outputLabel  value="Tarifario de Tramites" />
            <rich:dataTable value="#{TramitesController.tramites}"
                            var="trm" rows="5" reRender="ds" id="simpletable"
                            width="100%" columnsWidth="40%, 40%, 20%" rowClasses="TableImpar,TablePar">
                <f:facet name="header">
                    <rich:datascroller id="ds" renderIfSinglePage="false"></rich:datascroller>
                </f:facet>
                <rich:column>
                    <f:facet name="header"> <h:outputLabel value="Tramite" /></f:facet>
                    <h:outputText value="#{trm.trmNombre}"></h:outputText>
                </rich:column>
                <rich:column>
                    <f:facet name="header"> <h:outputLabel value="Pagos" /></f:facet>
                    <t:dataList value="#{trm.cuentaingresoTramiteCollection}" var="cit">
                        <h:outputLabel styleClass="texto12" value=" #{cit.fkCinCodigo.cinDesc}"/>
                        <br>
                    </t:dataList>
                </rich:column>
                <rich:column>
                    <f:facet name="header"> <h:outputLabel value="Tarifa" /></f:facet>
                    <t:dataList value="#{trm.cuentaingresoTramiteCollection}" var="cit">
                        <h:outputLabel styleClass="texto12" value=" #{cit.valorCuenta.vcuValor}"/>
                        <br>
                    </t:dataList>
                </rich:column>
            </rich:dataTable>
            <t:dataList value="#{TramitesController.tramites}" var="trm">
                <h:graphicImage value="/img/trian.gif"/>
                <h:outputLabel styleClass="texto12" value=" #{trm.trmNombre}"/>
                <a4j:commandButton title="ir" image="/img/navbar_flecha.png" action="#{TramitesController.irSolicitudCip}">
                    <f:setPropertyActionListener target="#{TramitesController.tramite}" value="#{trm}" />
                </a4j:commandButton>
                <br>
            </t:dataList>
        </a4j:form>
    </t:div>
</f:view>